# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
# version must be kept in sync with libqalculate
pkgname=qalculate-qt
pkgver=4.2.0
pkgrel=0
pkgdesc="Multi-purpose desktop calculator - Qt version"
url="https://github.com/Qalculate/qalculate-qt"
arch="all"
license="GPL-2.0-or-later"
depends="gnuplot"
makedepends="qt5-qtbase-dev qt5-qttools-dev libqalculate-dev"
subpackages="$pkgname-doc"
source="https://github.com/Qalculate/qalculate-qt/archive/v$pkgver/qalculate-qt-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	qmake-qt5 PREFIX=/usr
	make
}

check() {
	make check
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="
a45ebf2314ef92223892b918a381ca205223826b9d591987638d8cb3343e0db39b83dcdc18b151e17edc97537ad526e077a9be617ac5164f761e833a2dfb3ae0  qalculate-qt-4.2.0.tar.gz
"
